package com.ulic.customerManApplication.usermodule.bo;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


@Entity
@Table(name = "T_GYW_USER_ACTIVIE")
@SequenceGenerator(name="user_activie_seq",sequenceName="S_GYW_USER_ACTIVIE_ID")
public class UserActivie {


	private int oid;
	//用户
	private User user;
	//状态对象oid
	private int objectid;
	
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="user_activie_seq")
	@Id
	public int getOid() {
		return oid;
	}
	public void setOid(int oid) {
		this.oid = oid;
	}
	@ManyToOne(targetEntity = User.class, fetch = FetchType.LAZY, optional = true)
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public int getObjectid() {
		return objectid;
	}
	public void setObjectid(int objectid) {
		this.objectid = objectid;
	}
}
